package com.school.generator.base;


import java.io.Serializable;
import java.util.List;

public interface BaseService<T, ID extends Serializable> {
    BaseRepository getRepository();

    int logicalHide(ID var1);

    int logicalShow(ID var1);

    int logicalDelete(ID var1);

    int deleteByPrimaryKey(ID var1);

    int insert(T var1);

    String insertSelective(T var1);

    int updateByPrimaryKeySelective(T var1);

    int updateByPrimaryKey(T var1);

    T selectById(ID var1);

    T findOne(T var1);

    Boolean exist(T var1);

    List<T> findAllWithResult(T var1);

    List<T> findPageWithResult(T var1);

    PageInfo findAllWithPageInfo(T var1);

    PageInfo findPageWithPageInfo(T var1);

    Integer findPageWithCount(T var1);

    PageInfo findPageWithPageInfoLike(T var1);
}
